package entity

import "time"

type state int16

const (
	StatusClose  state = 0 // 关闭
	StatusNormal state = 1 // 正常
)

type Server struct {
	ServerID  int32     `gorm:"type:int;primary_key"`
	Name      string    `gorm:"size:255"`
	Address   string    `gorm:"size:255"`
	State     state     `gorm:"type:smallint"`
	OpenTime  time.Time `json:"-"` // 开服时间
	CreatedAt time.Time `json:"-"`
	UpdatedAt time.Time `json:"-"`

	TimeStamp int64 `sql:"-"`
}
